using System;
using System.Collections;

namespace Eshouse.Entity
{
	

	/// <summary>
	/// DicCode object for NHibernate mapped table 'DicCode'.
	/// </summary>
	public class DicCode
	{
		#region Member Variables
		
		protected int _id;
		protected string _dictName;
		protected IList _dictidDicTables;

		#endregion

		#region Constructors

		public DicCode() { }

		public DicCode( string dictName )
		{
			this._dictName = dictName;
		}

		#endregion

		#region Public Properties

		public virtual int Id
		{
			get {return _id;}
			set {_id = value;}
		}

		public virtual  string DictName
		{
			get { return _dictName; }
			set
			{
				if ( value != null && value.Length > 64)
					throw new ArgumentOutOfRangeException(" Invalid value for DictName", value, value.ToString());
				_dictName = value;
			}
		}

		public virtual IList dictidDicTables
		{
			get
			{
				if (_dictidDicTables==null)
				{
					_dictidDicTables = new ArrayList();
				}
				return _dictidDicTables;
			}
			set { _dictidDicTables = value; }
		}

		

		#endregion
	}
	
}